import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'

import Layout from "../views/layout/Layout.vue"

const routes:Array<RouteRecordRaw> = [
  {
    path: '',
    component: Layout,
    children: [
      {
        path: '',
        name: '',
        meta: { title: '首页', icon: 'account' },
        component: () => import("@/views/dashboard/index.vue")
      }
    ]
  },
  {
    path: '/home',
    name: 'father',
    component: () => import("@/views/home/index.vue"),
    meta: {
      title: 'father页面'
    }
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes: routes,
})

export default router;